/**
 * Created by ThinkPad on 2018/10/24.
 */

var app = new Vue({
    el:"#vue_app",
    data:{
        xxxx:{},
        imgList:[]
    },
    created:function(){
        $.ajax({
            url:baseURL+"/offlinestudy/subscribedate/printStudy",
            type:"POST",
            data:{
                "id":id
            },
            success:function(data){
                console.log(data);
                if(data.code == 0){
                    app.imgList = data.imgList;
                    app.xxxx = data.xxxx;
                }
            },
            error:function(msg){
                alert(msg);
            }
        });
    },
    methods:{

    },
    filters:{
        formatDate:function(val){
            var date = new Date(val);
            var year = date.getFullYear();
            var month = date.getMonth();
            var day = date.getDay();
            return year + "年" + month + "月" + day + "日";
        }
    }
});